<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<html>
	<head>
		<meta http-equiv="Content-Language" content="zh-cn">
		<meta http-equiv="Content-Type" content="text/html; charset=gbk">
		<title>成绩</title>
		<link rel="stylesheet" type="text/css" href="<%=basePath%>css/style_admin.css">
<script type="text/javascript" src="js/jquery-1.4.2.js"></script>
<script type="text/javascript" src="js/Score.js"></script>
</head>
<form name="chooseForm" onsubmit="return checkForm()" action="ReportInfo!selectScore" method="post">选择查询条件
	<select name="condition" id="condition">
		<option value="name">学生姓名</option>
		<option value="id">学生学号</option>
	</select>
	<input name=choose type="text" id="scoreCheck"/>
	<input type="submit" value="查询"/>
</form>

<body>
 <form action="" method="post" >
		<table cellspacing="1" cellpadding="4" width="100%"
			class="tableborder" id="table3">	
			<tr>
				<td colspan="17" class="header" align="center"><blockquote> 
					 成绩
				</blockquote></td>
			</tr>
			<tr>
				<td align="center" class="altbg1">
					<b>学生编号</b>
				</td>
				<td align="center" class="altbg1">
					<b>学生名称</b>
				</td>
				<td align="center" class="altbg1">
					<b>课程名称</b>
				</td>
				<td align="center" class="altbg1">
					<b>期末成绩</b>
				</td>
				<td align="center" class="altbg1">
					<b>平时成绩</b>
				</td>
				<td align="center" class="altbg1">
					<b>总成绩</b>
				</td>
				<td align="center" class="altbg1">
					<b>备注</b>
				</td>
				<td align="center" class="altbg1">
					<b>修改</b>
				</td>
				<!--<td align="center" class="altbg1">
					<b>删除</b>
				</td>
			--></tr>	
			
			<tr>
				<td>
					<s:if test="scoreInfo.size==0">没有此记录!</s:if>
				</td>
			</tr>		
			<s:iterator value="scoreInfo">
			<tr>
				<td align="center" class="altbg1">
					<b><s:property value="student.id" /></b>
				</td>
				<td align="center" class="altbg1">
					<b><s:property value="student.stuName" /></b>
				</td>
				<td align="center" class="altbg1">
					<b><s:property value="scoreName" /></b>
				</td>
				<td align="center" class="altbg1">
					<b><s:property value="finalScore" /></b>
				</td>
				<td align="center" class="altbg1">
					<b><s:property value="normalScore" /></b>
				</td>
				<td align="center" class="altbg1">
					<b><s:property value="totalScore" /></b>
				</td>	
				<td align="center" class="altbg1">
					<b><s:property value="memo" /></b>
				</td>	
				<td align="center" class="altbg1">
					<b><a href="ReportInfo!selectScoreByID?choose=<s:property value="id"/>">修改</a> </b>
				</td>
				<!--<td align="center" class="altbg1">
					<b><a href="ReportInfo!deleteScore?id=<s:property value="id"/>">删除</a> </b>
				</td>			
			--></tr>
			</s:iterator>
			</table>
			</form>

</html>
